// ValidationAspects
// Written by Mike Saunders
// Released under Microsoft Public License (Ms-PL)
using System;
using PostSharp.Laos;
using ValidationAspects.Sdk.Interception;

namespace ValidationAspects.PostSharp
{
	[Serializable]
	public class MethodValidationAspect : OnMethodBoundaryAspect
	{
		public override void OnEntry(MethodExecutionEventArgs eventArgs)
		{
			InterceptValidate.Method(eventArgs.Method, eventArgs.Instance, eventArgs.GetReadOnlyArgumentArray());
		}
	}
}